<?php

namespace front\models;

use Yii;

/**
 * This is the model class for table "refund_map".
 *
 * @property integer $id
 * @property integer $order_id
 * @property integer $retailer_id
 * @property integer $customer_id
 * @property integer $status
 * @property integer $express_name
 * @property string $express_no
 * @property string $express
 * @property integer $created_at
 * @property integer $updated_at
 */
class RefundmapModel extends \common\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'refund_map';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db');
    }
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['order_id', 'retailer_id', 'customer_id'], 'required'],
            [['order_id', 'retailer_id', 'customer_id', 'status', 'express_name', 'created_at', 'updated_at'], 'integer'],
            [['express_no'], 'string', 'max' => 64],
            [['express'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'order_id' => 'Order ID',
            'retailer_id' => 'Retailer ID',
            'customer_id' => 'Customer ID',
            'status' => 'Status',
            'express_name' => 'Express Name',
            'express_no' => 'Express No',
            'express' => 'Express',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
